Fixed yet another borkage from r67707
authorMax Semenik <maxsem@users.mediawiki.org>
Tue, 29 Jun 2010 09:20:09 +0000 (09:20 +0000)
committerMax Semenik <maxsem@users.mediawiki.org>
Tue, 29 Jun 2010 09:20:09 +0000 (09:20 +0000)
includes/db/DatabasePostgres.php

index 6500591..230f238 100644 (file)
@@ -309,7 +309,7 @@ class DatabasePostgres extends DatabaseBase {
                                $connectVars['password'] = $password;
 
                                @$this->mConn = pg_connect( $this->makeConnectionString( $connectVars ) );
-                               if ( $this->mConn ) {
+                               if ( !$this->mConn ) {
                                        print "<b>FAILED TO CONNECT!</b></li>";
                                        dieout("</ul>");
                                }